<template>
   <view class="index-container">
       <u-swiper :height="270" :list="imgList" :title="false" @click="imgListClick"></u-swiper>
   </view>
</template>

<script>
    export default {
        name: "index",
		data: () => {
			return {
                imgList: [
                    'https://cdn.uviewui.com/uview/swiper/swiper1.png',
                    'https://cdn.uviewui.com/uview/swiper/swiper2.png',
                    'https://cdn.uviewui.com/uview/swiper/swiper3.png',
                ]
			}
		},
        methods: {
            imgListClick(index) {
                console.log(`点击了第${index + 1}页图片`)
            },
        }

    }
</script>

<style lang="scss" scope>
@import 'index.scss';
</style>
